/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tareasClase;

/**
 *
 * @author Lab
 */
public class otra {
    public static void main(String[] args) {

        String s="3ff";

   Integer i =Integer.parseInt(s,16);

   Double d =i.doubleValue();
    System.out.println("--Double---   "+d);

 Integer i2 = d.intValue();


   String by= Integer.toBinaryString(i);
  System.out.println("---Binario----   "+by);


Integer i3 = Integer.parseInt(by, 2);

    
String oc = Integer.toOctalString(i3);
        System.out.println("---octal--  "+oc);

       Integer i4= Integer.parseInt(oc,8);

  String ex = Integer.toHexString(i4);
        System.out.println("---exadecimal---   "+ex);
     

    }
}
